package com.lysj.admin.master.bussiness.admin.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lysj.admin.master.common.spring.mpbase.MyEntity;
import com.lysj.admin.master.common.validation.annotation.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @author Created by drj on 2019-12-27 11:10
 * @description 人力资源公司
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("lysj_auth_agent")
@Table(name = "lysj_auth_agent",indexes = {
        @Index(name = "idx_phone", unique = true, columnList = "phone"),
        @Index(name = "idx_parent_id",columnList = "parentId")})
public class Agent extends MyEntity {

       private String parentId;//总管理id
       @NotBlank(message = "手机号不能为空")
       private String phone;//手机号
       @NotBlank(message = "城市不能为空")
       private String city;//城市

}
